package com.king.components.info;

import org.springframework.stereotype.Component;

import atlantafx.base.controls.Message;
import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.scene.layout.VBox;
import net.rgielen.fxweaver.core.FxmlView;

/**
 * 
 * 
 * @author king
 * @date 2025年6月27日-16:20:01
 */
@Component
@FxmlView
public class ExceptionInfoController {

	@FXML
	private VBox box;

	@FXML
	private Message title;

	@FXML
	private TextArea content;

	public void setTitle(String title) {
		this.title.setDescription(title);
	}

	public void setContent(String content) {
		this.content.setText(content);
	}

	public void setWidth(double width) {
		box.setMaxWidth(width);
		box.setPrefWidth(width);
		box.setMinWidth(width);
	}

}
